var mongoose = require("mongoose");

var studentSchema = new mongoose.Schema({   // Schema
    "sid" : Number,
    "name": String,
    "age": Number,
    "sex": String,
    "Sessions" : [Number]    // 存放课程的kid
});
studentSchema.index({"sid": 1});     // 索引

var Student = mongoose.model("Student",studentSchema);   // model
module.exports = Student;